package cn.edu.scau.cmi.xuandingcong.simpleFactoryMethod;

public class MeatFactory{

	public static Meat factory(String meat) {
		Meat m = null;
		if(meat.compareTo("Pork") == 0) 	m = new Pork();
		else if(meat.compareTo("Beef") == 0)	m = new Beef();
		else if(meat.compareTo("Chicken") == 0)	m = new Chicken();
		return m;
	}
	
}
